package com.yic.module.wms.controller.admin.itemwarehouseinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 库存明细 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ItemWarehouseInfoBaseVO {

    @Schema(description = "工厂", requiredMode = Schema.RequiredMode.REQUIRED, example = "1779")
    @NotNull(message = "工厂不能为空")
    private Long factoryId;

    @Schema(description = "仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "10606")
    @NotNull(message = "仓库不能为空")
    private Long warehouseId;

    @Schema(description = "库区", example = "2334")
    private Long areaId;

    @Schema(description = "库位", example = "6051")
    private Long locationId;

    @Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "20397")
    @NotNull(message = "产品不能为空")
    private Long itemId;

    @Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "1977")
    @NotNull(message = "产品不能为空")
    private Long itemWarehouseId;

    @Schema(description = "库存")
    private BigDecimal stock;

    @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "批次号不能为空")
    private String batchNo;

    @Schema(description = "流水号")
    private String serialNo;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "来源类型", example = "1")
    @NotNull(message = "来源类型不能为空")
    private Integer type;

    @Schema(description = "来源单号", example = "1")
    @NotNull(message = "来源单号不能为空")
    private Long sourceId;

    @Schema(description = "来源单号", example = "1")
    @NotNull(message = "来源单号不能为空")
    private String sourceCode;

}
